package org.lwj.logger.http.support;

import org.springframework.http.HttpMessage;

import org.lwj.logger.http.AbstractHttpHeadType;

/**
 * spring HttpMessage 头部类型
 * 
 * @author liwenjian
 *
 */
public class HttpMessageHeadType extends AbstractHttpHeadType<HttpMessage> {

	public Class<HttpMessage> headType() {
		return HttpMessage.class;
	}

	public boolean addHeader(HttpMessage head, String key, String value) {
		head.getHeaders().set(key, value);
		return true;
	}

}
